package com.flute.icrawler.framework.framework.container;

import java.io.Serializable;
import java.util.Comparator;

import com.flute.tools.util.SerializeUtil;

public class AdditionalComparator implements Comparator<byte[]> ,Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -6700703767242417419L;

	@Override
	public int compare(byte[] o1, byte[] o2) {

		AdditionalUrlInformation info1 = (AdditionalUrlInformation) SerializeUtil
				.ByteToObject(o1);
		AdditionalUrlInformation info2 = (AdditionalUrlInformation) SerializeUtil
				.ByteToObject(o2);

		return info1.compareTo(info2);
	}

}
